package spring.study.startup.aop;


import org.springframework.aop.framework.AopContext;
import org.springframework.stereotype.Service;

@Service("aopService")
public class AopService implements AopServiceInterface {

    private void testPrivate(){
        System.out.println("just test this-private-method-call");
    }

    public void testThis(){
        System.out.println("just test this-invoke");
    }

    public void print(){
        System.out.println("just test aop");
        this.testThis();
        this.testPrivate();

    }

    private  static AopServiceInterface  getProxy(){
        return (AopService) AopContext.currentProxy();
    }
}
